<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/WEB-INF/jsp/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/inc/meta.jsp"%>  
	<script type="text/javascript">
$(function () {
	$("#catetree").jstree({ 
		"xml_data" : {
			"ajax" : {
				"url" : "${approot}/data/xml/dept_tree.xml",
			},
			
		},
		"themes" : {
			"theme" : "classic",
			"dots" : true,
			"icons" :true
		},
		"plugins" : [ "themes", "xml_data","ui"]
	})
	.bind("select_node.jstree", function(e, data) {
		var cid=data.rslt.obj.attr("id");
        //alert(cid);
		window.parent.document.getElementById("treeRight").src="${approot}/admin/dept/right/"+cid;
    }) 

});
</script> 
</head>  
<body>
  <div id="catetree"></div>
</body>
</html>
